package com.lakeworks.event;

import com.lakeworks.common.domain.base.event.TicketEvent;
import com.lakeworks.common.domain.ticket.TktTicket;
import com.lakeworks.decision.base.DecisionType;
import lombok.Data;

import java.time.Instant;

@Data
public class UpdateTicketEvent extends TicketEvent {

    private static final long serialVersionUID = 1L;

    DecisionType decisionType;

    public UpdateTicketEvent(TktTicket tktTicket, String operator) {
        super.setTicket(tktTicket);
        super.setTimestamp(Instant.now());
        super.setOperator(operator);
    }
}
